import request from '../utils/request'

/**
 * 邮箱登录接口
 * @param {邮箱} email 
 * @param {密码} password 
 */
export function emailLogin(email,password){
    let url = "/login?email="+email+"&password="+password;
    return request(url);
}
//手机号登录
export function phoneLogin(phone,password){
    let url = "/login/cellphone?phone="+phone+"&password="+password;
    return request(url);
}